Web Security

Server Side

Client Side

Same-Origin Policy

  • Prevent a malicious site from spying on or tampering with user information or interactions with other websites.
  • Policy1: Each site in the browser is isolated from all others
  • Policy2: Multiple pages from the same site are not isolated.
  • Origin = Protocol + Hostname + Port
    e.g. http://coolsite.com:81/tools/info.html

SQL Injection

CSRF: Cross-Site Request Forgery

XSS Attack